package com.fhj.bookshop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fhj.bookshop.entity.Customer;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fu
 * @since 2023-12-12
 */
public interface ICustomerService extends IService<Customer> {

    Customer getByAccountAndPassword(String account,String password);

    Customer getByAccount(String account);

    void addUser(Customer customer);

    Customer getById(Integer custId);

    Page<Customer> otherUserPage(Integer custId, Integer pageCode, Integer pageSize);

    void changePower(Integer custId, String power);
}
